import re

# 2020/08/03  16:32             6,957 业务员选择.html
# 2020/08/03  16:32             6,153 主页.html
# 2020/08/03  16:32            11,398 客户选择.html
# 2020/08/03  16:32            16,900 新增销售订单.html
# 2020/08/03  16:32             7,888 新增销售订单表体.html
# 2020/08/03  16:32            18,748 查询销售订单_业务员排序_.html
# 2020/08/03  16:32            18,696 查询销售订单_客户排序_.html
# 2020/08/03  16:32            18,579 查询销售订单_日期排序_.html
# 2020/08/03  16:32            21,099 查询销售订单详情.html
# 2020/08/03  16:32             8,294 登录.html
# 2020/08/03  16:32             6,561 订单类型选择.html
# 2020/08/03  16:32             9,192 订单行.html
# 2020/08/03  16:32             6,111 订单行明细.html
# 2020/08/03  16:32             7,246 部门选择.html
# 2020/08/03  16:32            11,276 销售组织选择.html
def change(li):
    li='./'+li
    with open(li, 'r',encoding="utf-8") as f:
        str_list=f.read()
        res=re.sub('charset=utf-8"/>','charset=utf-8"/>\n   <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>',str_list)
        f.close()
        f=open(li,'w',encoding="utf-8")
        f.write(res)

ll=['主页.html','查询销售订单_带搜索_.html',
'查询销售订单_新增按钮_.html',
'新增销售订单表体.html','查询销售订单详情已保存.html','查询销售订单详情.html','登录.html','新增销售订单.html',
'订单行.html','订单行明细.html','已选列表.html','多选物料.html','已选列表空.html','提交成功返回主页.html','保存成功返回主页.html']
for i in range(len(ll)):
    change(ll[i])

